package com.example.mardan_demo1.mapper;

import com.example.mardan_demo1.pojo.WuZhiHuaHuiYi.DevicePojo;
import com.example.mardan_demo1.pojo.WuZhiHuaHuiYi.HuiYi;
import com.example.mardan_demo1.pojo.WuZhiHuaHuiYi.YiTi;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author:买尔旦江 ×@CreateTime: 2025-02-09
 * @Description: 无纸化会议mapper
 * @Version: 1.0
 */
@Mapper
public interface WuZhiHuaHuiYiMapper {
    long addHuiYi(HuiYi huiYi);

    HuiYi getHuiYiById(Integer id);

    List<HuiYi> getlist(String cname, String state);

    void addYiTi(YiTi yiti);

    List<YiTi> getYiTiByHuiYiId(Integer id);

    HuiYi findHuiYiByUserIdAndHuiYiId(Integer id, Integer userId);

    void deleteHuiYiById(Integer id);

    void deleteYiTiByHuiYiId(Integer id);

    YiTi getYiTiById(Integer id);

    void updateHuiYi(HuiYi huiYi);

    YiTi findYiTiById(Integer id);

    void deleteYiTiById(Integer id);
    YiTi findYiTiByHuiYiIdAndSort(String huiyiId, int i);
    void addDevice(DevicePojo device);

    DevicePojo getDeviceById(Integer id);

    Integer deleteDeviceById(Integer id);

    void updateDevice(DevicePojo device);

    List<DevicePojo> getDeviceList(String ip);

    DevicePojo getDeviceByIpAddress(String ipAddress);

    List<HuiYi> getListForClient();

    List<HuiYi> getMeetingListByShouquanYonghu();
    void updateYiTi(YiTi yiti);
}
